import http from "../utils/http";

// 商品列表
export const reqGoodsList = ({ page, limit, ...data }) => {
  return http.request({
    url: `/goods/list/${page}/${limit}`,
    method: "GET",
    data: data,
  });
};

// 商品详情
export const reqGoodsInfo = (goodsId) => {
  return http.request({
    url: `/goods/${goodsId}`,
    method: "GET",
  });
};
